package com.lg.okframe.fragment;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import com.lg.okframe.R;
import com.lg.okframe.base.BaseFragment;
import com.scwang.smartrefresh.header.WaterDropHeader;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;

/**
 * 我的页面
 * Created by LG on 2018/7/31.
 */

public class UserFragment extends BaseFragment {

    private LinearLayout head_me;

    @Override
    public void initData(Bundle savedInstanceState, Context context) {

    }

    @Override
    public void initView(View view, Context context) {
        SmartRefreshLayout refreshLayout = (SmartRefreshLayout) view.findViewById(R.id.reswsm);
        refreshLayout.setEnableLoadmore(false);
        refreshLayout.setRefreshHeader(new WaterDropHeader(getActivity()));
        head_me = (LinearLayout) view.findViewById(R.id.head_me);
//        head_me.setBackgroundResource(R.mipmap.head);
    }

    @Override
    public int setView() {
        return R.layout.user_fragment;
    }
}
